#include "discrete_sensor.hpp"
#include "sensor.hpp"
#include <iostream>

namespace my_cpp_project
{
    DiscreteSensor::DiscreteSensor(int id, bool status) {
        m_id =  id;
        m_status = status;
    }

    DiscreteSensor::DiscreteSensor(DiscreteSensor &sensor) {
        m_id = sensor.m_id;
        m_status = sensor.m_status;
    }


    bool DiscreteSensor::get_status(){
        return this->m_status;
    }
    void DiscreteSensor::print_all_info(){
        std::cout<<"sensor id is"<<this->m_id<<std::endl;
        std::cout<<"sensor status is"<<this->m_status<<std::endl;
    }
}

